<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	
</body>
<script type="text/javascript">
	function t1(){
		var xhr = new XMLHttpRequest();
		xhr.onreadystatechange = function(){
			if(this.readyState == 4){
				alert(this.responseText);
			}
		}
		xhr.open('get','http://localhost/http/8.php',true);
		xhr.send(null);
	}

	t1();
</script>
</html>